import request from '@/utils/request'

// 获取log日志文件名
export function getUpload(params) {
  return request({
    url: '/api/upload',
    method: 'POST',
    data:params,
    header: {
        'Content-Type': 'multipart/form-data' // 默认值
      },
  })
}
// 图片上传组件获取图片列表
export function getImagesList(query,page,size,width,height,mode) {
    return request({
      url: `/api/images/${query}?page=${page}&size=${size}&width=${width}&height=${height}&mode=${mode}`,
      method: 'GET',
    })
}

// 修改单个数据接口
export function resetSomeDate(id,model,status_name,status_value) {
  return request({
    url: '/api/adjust',
    method: 'POST',
    data:{
      id,
      model,
      status_name,
      status_value
    }
  })
}

// 获取省市区联机菜单
export function getAddress() {
  return request({
    url: '/api/address',
    method: 'GET'
  })
}